package com.javen.dao;

import java.util.List;
import java.util.Map;

import com.javen.model.Food;

public interface FoodMapper {
	/**
     * 通过商家id以及分类名获取该商家的所有的菜
     * @param sellerId
     * @return List<Food>
     */
    List<Food> selectAllByClassName(Map<String,Object> data);
	
    /**
     * 通过商家id获取该商家的所有的菜
     * @param sellerId
     * @return List<Food>
     */
    List<Food> selectAllBySellerId(int sellerId);
	
    int deleteByPrimaryKey(Integer foodId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table food
     *
     * @mbggenerated Mon May 21 10:17:12 CST 2018
     */
    int insert(Food record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table food
     *
     * @mbggenerated Mon May 21 10:17:12 CST 2018
     */
    int insertSelective(Food record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table food
     *
     * @mbggenerated Mon May 21 10:17:12 CST 2018
     */
    Food selectByPrimaryKey(Integer foodId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table food
     *
     * @mbggenerated Mon May 21 10:17:12 CST 2018
     */
    int updateByPrimaryKeySelective(Food record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table food
     *
     * @mbggenerated Mon May 21 10:17:12 CST 2018
     */
    int updateByPrimaryKey(Food record);
}